package com.ssy.lingxi.contract.model.vo.manage.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 合同管理作废合同接口参数VO
 * @author 伍将
 * @date 2021/2/7
 * @version 2.0.0
 */
public class ContractManageInvalidVO implements Serializable {
    private static final long serialVersionUID = -2850753224149948171L;

    /**
     * 合同id
     */
    @NotNull(message = "合同id需大于0")
    @Positive(message = "合同id需大于0")
    private Long contractId;

    /**
     * 作废时间
     */
    @NotBlank(message = "作废时间不能为空")
    private String invalidTime;

    /**
     * 作废原因
     */
    @NotBlank(message = "作废原因不能为空")
    @Size(max = 100, message = "最大100个字符，50个文字")
    private String invalidReason;

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }

    public String getInvalidTime() {
        return invalidTime;
    }

    public void setInvalidTime(String invalidTime) {
        this.invalidTime = invalidTime;
    }

    public String getInvalidReason() {
        return invalidReason;
    }

    public void setInvalidReason(String invalidReason) {
        this.invalidReason = invalidReason;
    }
}
